<template>
  <div>
    <div class="title-warp">
      <div>
        <div style="display: flex">
          <span>{{ title }}</span>
          <slot name="left"></slot>
        </div>
      </div>
      <div>
        <slot name="right"></slot>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    title: {
      type: String,
      default: "",
    },
  },
  name: "myTitle",
  data() {
    return {};
  },
  created() {},
  mounted() {},
  methods: {},
};
</script>
<style lang="scss" scoped>
.title-warp {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid #ccc;
  span {
    margin-right: 30px;
    color: rgba(16, 16, 16, 1);
    font-size: 16px;
  }
}
</style>
